package com.ac.util;

import org.bson.Document;

import cn.hutool.json.JSONUtil;

public class MapUtils {
	
	public static <T> T toBean(Document map, Class<T> beanClass) {
		return JSONUtil.toBean(JSONUtil.toJsonStr(map), beanClass);
	}
	
}
